home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Freeware / X-Arc 1.3 / Install next >
Text File  |  2002-10-27  |  55KB  |  1,235 lines

  1. ; Install script for X-Arc
  2. ;
  3. ; Copyright by Federico Pomi, 1998-1999
  4.  
  5. (procedure P_XATREG
  6.     (
  7.     (P_FLUSH)
  8.     (run "Installation/Tools/xatinfo")
  9.     )
  10. )
  11.  
  12. (procedure P_GRAZIE_ED_EXE_REG
  13.     ( if    (= 1 installato)
  14.             (set @default-dest (tackon @default-dest "X-Arc") )
  15.             (set @default-dest
  16.                 (askdir
  17.                     (prompt "Please select the directory in which your X-Arc executable is located." )
  18.                     (default (tackon @default-dest "X-Arc") )
  19.                     (help @askdir-help)
  20.                 )
  21.             )
  22.     )
  23.     (
  24.         (copyfiles
  25.             (source "installation/exes/x-arc_REG")
  26.             (help @copyfiles-help)
  27.             (prompt "Copying the registered executable of X-Arc...")
  28.             (dest @default-dest)
  29.             (newname "X-Arc")
  30.             (optional askuser)
  31.         )
  32.     )
  33.     (message
  34.     "Dear User, \n"
  35.     "Your keyfile has been installed, you should now be able to use X-Arc "
  36.     "without any limitation. Feel free to read the accompanying documentation "
  37.     "to further your knowledge of the program, to pick up some tips and tricks and how to customise X-Arc as you prefer. "
  38.     "\nFor any information you may require, criticisms or suggestions; feel free  to "
  39.     "contact us using the email address or the web sites shown below.\n"
  40.     "\nThank you,\nFederico Pomi & Nik Soggia\n"
  41.     "\nhttp://www.vapor.com/X-Arc/"
  42.     "\nhttp://www.amyresource.it/X-Arc/"
  43.     "\nfede@vapor.com"
  44.     )
  45.     (exit)
  46.  
  47. )
  48.  
  49.  
  50.  
  51. (procedure P_CONTROLLA_SE_INSTALLATA
  52. (
  53.     (set risultato (P_XATREG))
  54.     (if (= 1 risultato)
  55.         (;Then
  56.         (if (= 0 (askbool
  57.                     (prompt
  58.                         "Unfortunately it hasn't been possible to flush a previous xarctools.library."
  59.                         " Please close all X-Arc tasks and retry."
  60.                         " If this still doesn't work, quit from this installation,"
  61.                         " reset the computer and relaunch the script."
  62.                     )
  63.                     (help @askbool-help)
  64.                     (choices "Ok, try again" "Quit")
  65.                 )
  66.             )
  67.             (; Then
  68.             (exit)
  69.             (P_XAT_O_DEMO_O_RESETTI)
  70.             ); EndThen
  71.         );EndIF
  72.         );EndThen
  73.         ( P_GRAZIE_ED_EXE_REG ) ;Else
  74.     );EndIF
  75. ))
  76.  
  77.  
  78. (procedure P_INIZIO
  79.     (
  80.         (set sceltainiziale
  81.             (askchoice
  82.                 (prompt "The X-Arc 1.3 installer script allows you to install/update X-Arc or to install a keyfile. Please select:")
  83.                 (help @askchoice-help)
  84.                 (choices "Install X-Arc" "Install Keyfile" "Quit")
  85.             )
  86.         )
  87.         (select sceltainiziale
  88.             (P_INXARC)
  89.             (if (= 1 (exists "libs:xarctools.library"))
  90.                 (P_INKEY)
  91.                 (
  92.                 (P_INSTXAT)
  93.                 (P_INKEY)
  94.                 )
  95.             )
  96.             ( exit )
  97.         )
  98.         (P_INIZIO)
  99.     )
  100. )
  101.  
  102. (procedure P_TAGGAEXE
  103.     ( if (= (P_XATREG) 0)
  104.         (
  105.             (if (exists "Installation/exes/X-Arc_REG")
  106.                 ( set exefile "Installation/exes/X-Arc_REG" )
  107.                 (if (exists "Installation/exes/X-Arc_DEMO")
  108.                     (if (askbool
  109.                             (help @askbool-help)
  110.                             (prompt "The registered version of the executable isn't available in this archive. "
  111.                                     "Would you like to install the demo version, instead?"
  112.                             )
  113.                         )
  114.                         ( set exefile "Installation/exes/X-Arc_DEMO")
  115.                         ( exit )
  116.                     )
  117.                     (
  118.                         ( message "This archive doesn't contain either the registered version of the executable, "
  119.                                   "nor the demo. Please download the correct archive from http://www.AmyResource.it/X-Arc"
  120.                         )
  121.                         (exit)
  122.                     )
  123.                 )
  124.             )
  125.         )
  126.         (
  127.             (if (exists "Installation/exes/X-Arc_DEMO")
  128.                 ( set exefile "Installation/exes/X-Arc_DEMO" )
  129.                 (if (exists "Installation/exes/X-Arc_REG")
  130.                     (if (P_CERCACHIAVE)
  131.                         ( set exefile "Installation/exes/X-Arc_REG")
  132.                         (if
  133.                             (askbool
  134.                                 (help @askbool-help)
  135.                                 (prompt "The demo version of the executable isn't available in this archive. "
  136.                                         "Would you like to install the registered version, instead?"
  137.                                         "\n\nPlease remember that without a keyfile, the registered version cannot be used."
  138.                                 )
  139.                             )
  140.                             ( set exefile "Installation/exes/X-Arc_REG")
  141.                             ( exit)
  142.                         )
  143.                     )
  144.                     (
  145.                         ( message "This archive doesn't contain either the demo version of the executable,"
  146.                                   " nor the registered one. Please download the correct archive from http://www.AmyResource.it/X-Arc"
  147.                         )
  148.                         (exit)
  149.                     )
  150.                 )
  151.             )
  152.         )
  153.     )
  154. )
  155.  
  156. (procedure P_TAGGADEST
  157. ( set
  158.     @default-dest
  159.     (askdir
  160.         (prompt "Please select the drawer where you want to install X-Arc.\nA directory WILL be created there.")
  161.         (help @askdir-help)
  162.         (default @default-dest)
  163.     )
  164.  
  165. )
  166. )
  167.  
  168. (procedure P_INXARC
  169.     (if (exists "MUI:" (noreq))
  170.         (
  171.             (P_TAGGAEXE)
  172.             (P_TAGGADEST)
  173.             (P_SETTA_VAR_CAT)
  174.             (if (= 0    (+
  175.                             (StrLen catalan_cat        )
  176.                             (StrLen croatian_cat       )
  177.                             (StrLen czech_cat          )
  178.                             (StrLen danish_cat         )
  179.                             (StrLen dutch_cat          )
  180.                             (StrLen english_cat        )
  181.                             (StrLen finnish_cat        )
  182.                             (StrLen french_cat         )
  183.                             (StrLen german_cat         )
  184.                             (StrLen greek_cat          )
  185.                             (StrLen hungarian_cat      )
  186.                             (StrLen italian_cat        )
  187.                             (StrLen japanese_cat       )
  188.                             (StrLen norwegian_cat      )
  189.                             (StrLen persian_cat        )
  190.                             (StrLen polish_cat         )
  191.                             (StrLen portugueseeuro_cat )
  192.                             (StrLen portuguesebraz_cat )
  193.                             (StrLen russian_cat        )
  194.                             (StrLen serbian_cat        )
  195.                             (StrLen slovenian_cat      )
  196.                             (StrLen spanish_cat        )
  197.                             (StrLen swedish_cat        )
  198.                         )
  199.                 )
  200.                 (message "No catalog files are included in this archive. Please check for the FULL archive on the X-Arc or VaporWare home page.\n\nhttp:www.AmyResource.it/X-Arc\nhttp://www.vapor.com" )
  201.                 (
  202.                     (P_TAGGACATS)
  203.                     (if (< 0 bitcataloghi)
  204.                         (if
  205.                             (askchoice
  206.                                 (help @askchoice-help)
  207.                                 (choices "Locale:catalogs/" (tackon @default-dest "X-Arc/catalogs/") )
  208.                                 (prompt "Where would you like to install the catalogs?")
  209.                             )
  210.                             (set catdest (tackon @default-dest "X-Arc/catalogs/") )
  211.                             (set catdest "Locale:catalogs/")
  212.                         )
  213.                     )
  214.                 )
  215.             )
  216.             (P_SETTA_VAR_DOC)
  217.             (if (= 0    (+
  218.                             (StrLen catalan_doc        )
  219.                             (StrLen croatian_doc       )
  220.                             (StrLen czech_doc          )
  221.                             (StrLen danish_doc         )
  222.                             (StrLen dutch_doc          )
  223.                             (StrLen english_doc        )
  224.                             (StrLen finnish_doc        )
  225.                             (StrLen french_doc         )
  226.                             (StrLen german_doc         )
  227.                             (StrLen greek_doc          )
  228.                             (StrLen hungarian_doc      )
  229.                             (StrLen italian_doc        )
  230.                             (StrLen japanese_doc       )
  231.                             (StrLen norwegian_doc      )
  232.                             (StrLen persian_doc        )
  233.                             (StrLen polish_doc         )
  234.                             (StrLen portugueseeuro_doc )
  235.                             (StrLen portuguesebraz_doc )
  236.                             (StrLen russian_doc        )
  237.                             (StrLen serbian_doc        )
  238.                             (StrLen slovenian_doc      )
  239.                             (StrLen spanish_doc        )
  240.                             (StrLen swedish_doc        )
  241.                         )
  242.                 )
  243.                 (message "No documentation is included in this archive. Please check for the FULL archive on the X-Arc or VaporWare home page.\n\nhttp:www.AmyResource.it/X-Arc\nhttp://www.vapor.com" )
  244.                 (
  245.                     (P_TAGGADOC)
  246.                     (if (< 0 documentation)
  247.                         (if ( < 0
  248.                                 (askchoice
  249.                                     (help @askchoice-help)
  250.                                     (choices (tackon @default-dest "X-Arc/Documentation/") "Somewhere else..." )
  251.                                     (prompt "Where would you like to install the documentation?\n"
  252.                                             "If you select 'somewhere else', you'll be prompted for the destination. Then, "
  253.                                             "once installation is finished, you'll have to manually alter X-Arc's preferences to set "
  254.                                             "your documentation directory."
  255.                                     )
  256.                                 )
  257.                             )
  258.                             (set docdest
  259.                                 (askdir
  260.                                     (help @askdir-help)
  261.                                     (prompt "Select documentation directory.\mA drawer will NOT be created there." )
  262.                                     (default (tackon @default-dest "X-Arc/Documentation/") )
  263.                                 )
  264.                             )
  265.                             (set docdest (tackon @default-dest "X-Arc/Documentation/") )
  266.                         )
  267.                     )
  268.                 )
  269.             )
  270.             (P_TAGGAMODULI)
  271.             (P_PRECREA_LINEE_AT)
  272.             (P_CREA_LINEE_AT)
  273.             (P_FT)
  274.             (P_INSTALNLIST)
  275.             (if (= 0 (exists (tackon @default-dest "X-Arc")))
  276.                 (makedir (tackon @default-dest "X-Arc")
  277.                     (help @makedir-help)
  278.                     (prompt "Creating X-Arc directory")
  279.                     (infos)
  280.  
  281.                 )
  282.             )
  283.             (copylib
  284.                 (help @copylib-help)
  285.                 (prompt "Copying xarctools.library")
  286.                 (source "Installation/Libs/xarctools.library")
  287.                 (dest "Libs:")
  288.                 (optional askuser fail )
  289.             )
  290.             (copylib
  291.                 (help @copylib-help)
  292.                 (prompt "Copying Vapor Update Library")
  293.                 (source "Installation/Libs/vapor_update.library")
  294.                 (dest "Libs:")
  295.                 (optional askuser fail )
  296.             )
  297.             (copylib
  298.                 (help @copylib-help)
  299.                 (prompt "Copying Vapor Registration Library")
  300.                 (source "Installation/Libs/vapor_registration.library")
  301.                 (dest "Libs:")
  302.                 (optional askuser fail )
  303.             )
  304.             (copylib
  305.                 (help @copylib-help)
  306.                 (prompt "Copying Vapor Toolkit Library")
  307.                 (source "Installation/Libs/vapor_toolkit.library")
  308.                 (dest "Libs:")
  309.                 (optional askuser fail )
  310.             )
  311.             (copyfiles
  312.                 (help @copyfiles-help)
  313.                 (prompt "Copying X-Arc executable")
  314.                 (source exefile)
  315.                 (dest (tackon @default-dest "X-Arc"))
  316.                 (newname "X-Arc")
  317.                 (optional askuser fail )
  318.             )
  319.             (set installato 1)
  320.             (copyfiles
  321.                 (help @copyfiles-help)
  322.                 (prompt "Copying X-Arc icon")
  323.                 (source "Installation/icons/newicons/exe.info")
  324.                 (dest (tackon @default-dest "X-Arc/"))
  325.                 (newname "X-Arc.info")
  326.                 (optional askuser fail )
  327.             )
  328.             (copyfiles
  329.                 (help @copyfiles-help)
  330.                 (prompt "Copying X-Arc Drawer icon")
  331.                 (source "Installation/icons/newicons/drawer.info")
  332.                 (dest @default-dest)
  333.                 (newname "X-Arc.info")
  334.                 (optional askuser fail )
  335.             )
  336.             (if (< 0 bitcataloghi) (P_COPY_CATS))
  337.             (if (< 0 documentation) (P_COPY_DOCS))
  338.             (if (< 0 bitmoduli) (P_COPY_MODS))
  339.             (if (< 0 creat) (P_COSTRUISCI_AT))
  340.             (if (< 0 (StrLen ft_source) )
  341.                 (copyfiles
  342.                     (help @copyfiles-help)
  343.                     (prompt "Copying default FileTypes settings...")
  344.                     (dest "ENV:")
  345.                     (source ft_source)
  346.                     (optional nofail askuser)
  347.                 )
  348.             )
  349.             (copyfiles
  350.                 (help @copyfiles-help)
  351.                 (prompt "Copying settings in ENVARC:...")
  352.                 (dest "ENVARC:")
  353.                 (source "ENV:")
  354.                 (optional fail askuser)
  355.                 (pattern "X-Arc.#?")
  356.             )
  357.         (if (= 0 (P_XATREG))
  358.             (exit)
  359.             (if (P_CERCACHIAVE)
  360.                 (if (askbool
  361.                         ( prompt "The installer script found that you have an X-Arc key but not yet installed (perhaps you're a new user or the xarctools.library has been replaced).\nThe key needs to be installed"
  362.                                  " to be able to use X-Arc without restrictions. Would you like the script to"
  363.                                  " install it?"
  364.                         )
  365.                         (help @askbool-help)
  366.                     )
  367.                     (
  368.                         (P_INKEY)
  369.                         (exit)
  370.                     )
  371.                     (
  372.                         (P_INREGUTIL)
  373.                         (exit)
  374.                     )
  375.                 )
  376.                 (
  377.                     (exit)
  378.                     (P_INREGUTIL)
  379.                 )
  380.             )
  381.         )
  382.  
  383.  
  384.         )
  385.  
  386.         (
  387.             (message
  388.                 "\nThis program needs MUI(r) installed on your system.\n"
  389.                 "Please install it and retry.\n"
  390.             )
  391.             (exit)
  392.         )
  393.     )
  394. )
  395.  
  396. (procedure P_INREGUTIL
  397.     (if (= 0 (exists (tackon @default-dest "X-Arc/registration")))
  398.         (makedir
  399.             (tackon @default-dest "X-Arc/Registration")
  400.             (prompt "Creating registration directory...")
  401.             (infos)
  402.             (help @makedir-help)
  403.         )
  404.     )
  405.     (copyfiles
  406.         (prompt "Copying registration tool...")
  407.         (help @copyfiles-help)
  408.         (source "Installation/Registration/")
  409.         (all)
  410.         (dest (tackon @default-dest "X-Arc/Registration") )
  411.         (optional fail force)
  412.     )
  413.     (copyfiles
  414.         (prompt "Copying registration directory icon...")
  415.         (help @copyfiles-help)
  416.         (source "Installation/Registration.info")
  417.         (dest (tackon @default-dest "X-Arc/") )
  418.     )
  419. )
  420.  
  421. (procedure P_COSTRUISCI_AT
  422.     (if (exists "ENV:X-Arc.ArchiveTypes" )
  423.         (delete "ENV:X-Arc.ArchiveTypes"
  424.             (prompt "Deleting old ArchiveTypes...")
  425.             (help @delete-help)
  426.             (optional force)
  427.         )
  428.     )
  429.     (textfile
  430.        (dest "ENV:X-Arc.ArchiveTypes")
  431.         (append linealha)
  432.         (append linealzx)
  433.         (append lineazip)
  434.     )
  435. )
  436.  
  437. (procedure P_COPY_MODS
  438.     (if (= 0 (exists moddest) )
  439.         (makedir moddest
  440.             (help @makedir-help)
  441.             (prompt "Creating modules directory...")
  442.         )
  443.     )
  444.  
  445.     (if (BITAND bitmoduli 1)
  446.         (copyfiles
  447.             (prompt "Copying LHA module...")
  448.             (help @copyfiles-help)
  449.             (optional fail askuser)
  450.             (source "Installation/Modules/lha.xarc_io" )
  451.             (dest moddest)
  452.         )
  453.     )
  454.     (if (BITAND bitmoduli 2)
  455.         (copyfiles
  456.             (prompt "Copying LZX module...")
  457.             (help @copyfiles-help)
  458.             (optional fail askuser)
  459.             (source "Installation/Modules/lzx.xarc_io" )
  460.             (dest moddest)
  461.         )
  462.     )
  463.     (if (BITAND bitmoduli 4)
  464.         (copyfiles
  465.             (prompt "Copying ZIP module...")
  466.             (help @copyfiles-help)
  467.             (optional fail askuser)
  468.             (source "Installation/Modules/zip.xarc_io" )
  469.             (dest moddest)
  470.         )
  471.     )
  472. )
  473.  
  474. (procedure P_COPY_CATS
  475.     (if (= 0 (exists catdest) )
  476.         (makedir catdest
  477.             (help @makedir-help)
  478.             (prompt "Creating catalog directory...")
  479.         )
  480.     )
  481.  
  482.     (if (BITAND bitcataloghi 1) (P_COPY_CAT catalan_dir ))
  483.     (if (BITAND bitcataloghi 2) (P_COPY_CAT croatian_dir ))
  484.     (if (BITAND bitcataloghi 4) (P_COPY_CAT czech_dir ))
  485.     (if (BITAND bitcataloghi 8) (P_COPY_CAT danish_dir ))
  486.     (if (BITAND bitcataloghi 16) (P_COPY_CAT dutch_dir ))
  487.     (if (BITAND bitcataloghi 32) (P_COPY_CAT english_dir ))
  488.     (if (BITAND bitcataloghi 64) (P_COPY_CAT finnish_dir ))
  489.     (if (BITAND bitcataloghi 128) (P_COPY_CAT french_dir ))
  490.     (if (BITAND bitcataloghi 256) (P_COPY_CAT german_dir ))
  491.     (if (BITAND bitcataloghi 512) (P_COPY_CAT greek_dir ))
  492.     (if (BITAND bitcataloghi 1024) (P_COPY_CAT hungarian_dir ))
  493.     (if (BITAND bitcataloghi 2048) (P_COPY_CAT italian_dir ))
  494.     (if (BITAND bitcataloghi 4096) (P_COPY_CAT japanese_dir ))
  495.     (if (BITAND bitcataloghi 8192) (P_COPY_CAT norwegian_dir ))
  496.     (if (BITAND bitcataloghi 16384) (P_COPY_CAT persian_dir ))
  497.     (if (BITAND bitcataloghi 32768) (P_COPY_CAT polish_dir ))
  498.     (if (BITAND bitcataloghi 65536) (P_COPY_CAT portugueseeuro_dir ))
  499.     (if (BITAND bitcataloghi 131072) (P_COPY_CAT portuguesebraz_dir ))
  500.     (if (BITAND bitcataloghi 262144) (P_COPY_CAT russian_dir ))
  501.     (if (BITAND bitcataloghi 524288) (P_COPY_CAT serbian_dir ))
  502.     (if (BITAND bitcataloghi 1048576) (P_COPY_CAT slovenian_dir ))
  503.     (if (BITAND bitcataloghi 2097152) (P_COPY_CAT spanish_dir ))
  504.     (if (BITAND bitcataloghi 4194304) (P_COPY_CAT swedish_dir ))
  505. )
  506.  
  507. (procedure P_COPY_DOCS
  508.     (if (= 0 (exists docdest) )
  509.         (makedir docdest
  510.             (help @makedir-help)
  511.             (prompt "Creating documentation directory...")
  512.             (infos)
  513.         )
  514.     )
  515.  
  516.     (if (= documentation 1) (P_COPY_DOC catalan_dir ))
  517.     (if (= documentation 2) (P_COPY_DOC croatian_dir ))
  518.     (if (= documentation 3) (P_COPY_DOC czech_dir ))
  519.     (if (= documentation 4) (P_COPY_DOC danish_dir ))
  520.     (if (= documentation 5) (P_COPY_DOC dutch_dir ))
  521.     (if (= documentation 6) (P_COPY_DOC english_dir ))
  522.     (if (= documentation 8) (P_COPY_DOC finnish_dir ))
  523.     (if (= documentation 8) (P_COPY_DOC french_dir ))
  524.     (if (= documentation 9) (P_COPY_DOC german_dir ))
  525.     (if (= documentation 10) (P_COPY_DOC greek_dir ))
  526.     (if (= documentation 11) (P_COPY_DOC hungarian_dir ))
  527.     (if (= documentation 12) (P_COPY_DOC italian_dir ))
  528.     (if (= documentation 13) (P_COPY_DOC japanese_dir ))
  529.     (if (= documentation 14) (P_COPY_DOC norwegian_dir ))
  530.     (if (= documentation 15) (P_COPY_DOC persian_dir ))
  531.     (if (= documentation 16) (P_COPY_DOC polish_dir ))
  532.     (if (= documentation 17) (P_COPY_DOC portugueseeuro_dir ))
  533.     (if (= documentation 19) (P_COPY_DOC portuguesebraz_dir ))
  534.     (if (= documentation 19) (P_COPY_DOC russian_dir ))
  535.     (if (= documentation 20) (P_COPY_DOC serbian_dir ))
  536.     (if (= documentation 21) (P_COPY_DOC slovenian_dir ))
  537.     (if (= documentation 22) (P_COPY_DOC spanish_dir ))
  538.     (if (= documentation 23) (P_COPY_DOC swedish_dir ))
  539.  
  540.     (if (= 0 (exists ( tackon docdest "pic" ) ) )
  541.         (makedir (tackon docdest "pic" )
  542.             (help @makedir-help)
  543.             (prompt "Creating documentation images directory...")
  544.         )
  545.     )
  546.  
  547.     (copyfiles
  548.         (prompt "Copying images of the documentation...")
  549.         (help @copyfiles-help)
  550.         (optional nofail askuser)
  551.         (source "Installation/Documentation/pic/")
  552.         (dest (tackon docdest "pic" ) )
  553.         (all)
  554.  
  555.     )
  556. )
  557.  
  558. (procedure P_COPY_CAT directory
  559.     (if (= 0
  560.             (exists
  561.                 (tackon catdest directory
  562.                 )
  563.             )
  564.         )
  565.         (makedir (tackon catdest directory)
  566.             (prompt "Creating dir for " directory " catalog.")
  567.             (help @makedir-help)
  568.         )
  569.     )
  570.     (copyfiles
  571.         (prompt "Copying " directory " catalog...")
  572.         (help @copyfiles-help)
  573.         (source (tackon (tackon "Installation/Catalogs/" directory) "XArc.catalog" ) )
  574.         (dest (tackon catdest directory) )
  575.     )
  576. )
  577.  
  578. (procedure P_COPY_DOC directory
  579.     (copyfiles
  580.         (prompt "Copying " directory " documentation...")
  581.         (all)
  582.         (help @copyfiles-help)
  583.         (source (tackon "Installation/documentation/" directory) )
  584.         (dest docdest )
  585.         (optional nofail askuser)
  586.     )
  587. )
  588.  
  589. (procedure P_FT
  590.     (if (exists "env:X-Arc.FileTypes" )
  591.         (
  592.             (message "The installer script found previously installed X-Arc filetypes "
  593.                      "on your system, probably from an old version of X-Arc. These "
  594.                      "settings will not be over written nor changed. "
  595.             )
  596.             (set ft_source "")
  597.         )
  598.         (if (exists "env:MIME.prefs" )
  599.             (
  600.                 (message "The installer script found a previously installed MIMEPrefs configuration "
  601.                          "on your system. This will be imported by X-Arc the first time you run the program."
  602.                 )
  603.                 (set ft_source "")
  604.             )
  605.             ( set ft_source "Installation/env/X-Arc.FileTypes")
  606.         )
  607.     )
  608.  
  609. )
  610.  
  611. (procedure P_TAGGAMODULI
  612.     (set bitmoduli
  613.         (askoptions
  614.             (help @askoptions-help)
  615.             (prompt "Please select the module(s) you want to install.\nThe more modules you install, the more archive types X-Arc will be able to recognise.")
  616.             (choices "LHA/LZH module" "LZX module" "ZIP module")
  617.         )
  618.     )
  619.     (if (= 0 bitmoduli )
  620.         (if (= 0
  621.                 (askbool
  622.                     (prompt "Without any installed module, X-Arc will not be able to open ANY archive! Are you sure you do not want to install ANY module?" )
  623.                     (help @askbool)
  624.                 )
  625.             )
  626.             (P_TAGGAMODULI)
  627.         )
  628.         (
  629.             (if
  630.                 (askchoice
  631.                     (prompt "Where would you like to install the modules?")
  632.                     (choices (tackon @default-dest "X-Arc/modules/") "Somewhere else..." )
  633.                     (help @askchoice-help)
  634.                 )
  635.                 (
  636.                     (set moddest
  637.                         (askdir
  638.                             (prompt "Select the directory where you want to install the modules. A directory will NOT be created.")
  639.                             (help @askdir-help)
  640.                             (default (tackon @default-dest "X-Arc/modules/"))
  641.                         )
  642.                     )
  643.                     (set at_moddest moddest)
  644.                 )
  645.                 (
  646.                     (set moddest (tackon @default-dest "X-Arc/modules/"))
  647.                     (set at_moddest "PROGDIR:modules/")
  648.                 )
  649.             )
  650.         )
  651.     )
  652. )
  653.  
  654. (procedure P_PRECREA_LINEE_AT
  655.     (if (< 0 bitmoduli)
  656.         (
  657.             (if (exists "env:X-Arc.ArchiveTypes")
  658.                 (set creat
  659.                     (askbool
  660.                         (prompt "You seem to be an old X-Arc user, with ArchiveTypes already configured. "
  661.                                 "Would you like the installer script to OVERWRITE these ArchiveTypes, creating the "
  662.                                 "new ones, step by step, or should it just leave the old settings? "
  663.                         )
  664.                         (help askbool-help)
  665.                         (choices "Please, overwrite" "Keep the old ones!" )
  666.                     )
  667.                 )
  668.                 (set creat
  669.                     (askbool
  670.                         (prompt "You seem to be an new X-Arc user, without previously configured ArchiveTypes. "
  671.                                 "Would you like the installer script to help you create these settings, "
  672.                                 "step by step, or would you like to create the archive settings yourself at a later date, within X-Arc? "
  673.                         )
  674.                         (help askbool-help)
  675.                         (choices "Let's do it now!" "Later, within X-Arc" )
  676.                     )
  677.                 )
  678.  
  679.             )
  680.         )
  681.         ( set creat 0)
  682.     )
  683.  
  684. )
  685.  
  686. (procedure P_CREA_LINEE_AT
  687.     (if (< 0 creat)
  688.         (
  689.             (if (BITAND bitmoduli 1)
  690.                 (
  691.                     (if (= 1 (exists "C:Lha") )
  692.                         (set lhacommand "C:LhA")
  693.                         (set lhacommand
  694.                             (askfile
  695.                                 (prompt "The LHA module needs the LhA program, by Stefan Boberg. Please locate it." )
  696.                                 (default "C:LhA" )
  697.                                 (help @askfile-help)
  698.                             )
  699.                         )
  700.                     )
  701.                     (if (= 1 (exists lhacommand) )
  702.                         (
  703.                             (set versione (getversion lhacommand) )
  704.                             (set lhaver (/ versione 65536) )
  705.                             (set lharev (- versione (* lhaver 65536) ) )
  706.                         )
  707.                         (set versione 0)
  708.                     )
  709.                     (if (= versione 0)
  710.                         (message "The selected file could not be found. The installer script will create the LHA archive type, "
  711.                                  "even though you will have to specify the location of the LhA command, later within X-Arc."
  712.                         )
  713.                         (if (< versione 65586)
  714.                             (
  715.                                 (message "The version of LhA you're using quite is old. Please download the latest version from Aminet. "
  716.                                          "The latest version is V1.50 registered.\n\n"
  717.                                          "The author of this archiver stopped development a few years ago: currently he doesn't "
  718.                                          "offer a registration service anymore, but will tollerate keyfile exchange between registered "
  719.                                          "and unregistered users. So, if you don't have the keyfile, you just have to ask around..."
  720.                                 )
  721.                                 (if (> version 65547)
  722.                                     (message "By the way, the LhA Module can use this version " lhaver "." lharev " of LhA, "
  723.                                              "even if it won't work very well. Updating to the latest version (1.50) is highly recommended."
  724.                                     )
  725.                                     (message "The version of LhA you are using (" lhaver "." lharev ") cannot be used at all with the LhA module. "
  726.                                              "Please update to the latest version (1.50)."
  727.                                     )
  728.                                 )
  729.                             )
  730.                         )
  731.  
  732.                     )
  733.                     (set linealha (cat (cat "LHA\t#?.L(HA|ZH)(.BAK|%)\t??-lh?-#?\t"( tackon at_moddest "lha.xarc_io")"\t3\t0\t0\tQ\t" lhacommand ) "\t\t\t1\n") )
  734.                 )
  735.             )
  736.             (if (BITAND bitmoduli 2)
  737.                 (
  738.                     (if (= 1 (exists "C:Lzx") )
  739.                         (set lzxcommand "C:Lzx")
  740.                         (set lzxcommand
  741.                             (askfile
  742.                                 (prompt "The LZX module needs the LZX program, by Data Compression Technologies (Jonathan Forbes). Please locate it." )
  743.                                 (default "C:Lzx" )
  744.                                 (help @askfile-help)
  745.                             )
  746.                         )
  747.                     )
  748.                     (if (= 1 (exists lzxcommand) )
  749.                         (
  750.                             (set versione (getversion lzxcommand) )
  751.                             (set lzxver (/ versione 65536) )
  752.                             (set lzxrev (- versione (* lzxver 65536) ) )
  753.                         )
  754.                         (set versione 0)
  755.                     )
  756.                     (if (= versione 0)
  757.                         (message "The selected file could not be found. The installer script will create the LZX archive type, "
  758.                                  "even though you will have to specify the location of the LZX command, later within X-Arc.")
  759.                         (if (< versione 65547)
  760.                             (
  761.                                 (message "The version of LZX you are using is old. Please download latest version from Aminet. "
  762.                                          "The latest version of LZX is V1.21 registered.\n\n"
  763.                                          "The author of this archiver halted development, and released "
  764.                                          "a free keyfile on Aminet for anyone. Just download it, together with latest version of the program."
  765.                                 )
  766.                                 (message "By the way, LZX Module should be able use this version " lzxver "." lzxrev " of LZX, "
  767.                                          "even if it won't work very well. Updating to latest version (1.21) is highly recommended."
  768.                                 )
  769.                             )
  770.                         )
  771.                     )
  772.  
  773.                     (set linealzx (cat (cat "LZX\t#?.LZX\tLZX#?\t"( tackon at_moddest "lzx.xarc_io")"\t1\t0\t0\tQ\t" lzxcommand ) "\t\t\t1\n") )
  774.                 )
  775.  
  776.             )
  777.             (if (BITAND bitmoduli 4)
  778.                 (
  779.                     (if (= 1 (exists "C:Zip") )
  780.                         (set zipcommand "C:Zip")
  781.                         (set zipcommand
  782.                             (askfile
  783.                                 (prompt "The ZIP module needs the Zip program, by Mark Adler, Richard B. Wales, ... Please locate it.\nThe module is also compatible with the PPC version of this command, ported by Gabriele Greco." )
  784.                                 (default "C:Zip" )
  785.                                 (help @askfile-help)
  786.                             )
  787.                         )
  788.                     )
  789.                     (if (= 1 (exists zipcommand) )
  790.                         (
  791.                             (set versione (getversion zipcommand) )
  792.                             (set zipver (/ versione 65536) )
  793.                             (set ziprev (- versione (* zipver 65536) ) )
  794.                         )
  795.                         (set zipcommand 0)
  796.                     )
  797.                     (if (= versione 0)
  798.                         (message "The selected file could not be found. The installer script will create the ZIP archive type, "
  799.                                  "even though you will have to specify the location of the ZIP command, later within X-Arc."
  800.                         )
  801.                         (if (< versione 131074)
  802.                             (
  803.                                 (message "The version of ZIP you are using is old. Please download a later version from Aminet. "
  804.                                          "The latest version ZIP is v2.2.\n\n"
  805.                                 )
  806.                                 (message "By the way, the ZIP Module should be able to use this version " zipver "." ziprev " of ZIP, "
  807.                                          "even if it won't work very well. Updating to latest version (2.2) is highly recommended."
  808.                                 )
  809.                             )
  810.                         )
  811.                     )
  812.                     (if (= 1 (exists "C:UnZip") )
  813.                         (set zipuncommand "C:UnZip")
  814.                         (set zipuncommand
  815.                             (askfile
  816.                                 (prompt "The ZIP module needs the UnZip program, by Info-ZIP, maintained by Greg Roelofs. Please locate it.\nThe module is also compatible with the PPC version of this command, ported by Gabriele Greco." )
  817.                                 (default "C:UnZip" )
  818.                                 (help @askfile-help)
  819.                             )
  820.                         )
  821.                     )
  822.                     (if (= 1 (exists zipcommand) )
  823.                         (
  824.                             (set versione (getversion zipuncommand) )
  825.                             (set zipver (/ versione 65536) )
  826.                             (set ziprev (- versione (* zipver 65536) ) )
  827.                         )
  828.                         (set versione 0)
  829.                     )
  830.                     (if (= versione 0)
  831.                         (message "The selected file could not be found. The installer script will create the UnZIP archive type, "
  832.                                  "even though you will have to specify the location of the UnZIP command, later within X-Arc."
  833.                         )
  834.                         (if (< versione 327710)
  835.                             (
  836.                                 (message "The version of UnZIP you are using is old. Please download a later version from Aminet. "
  837.                                          "Latest version of ZIP is v5.32.\n\n"
  838.                                 )
  839.                                 (message "By the way, the ZIP Module should be able to use this version " zipver "." ziprev " of Zip, "
  840.                                          "even if it won't work very well. Updating to latest version (5.32) is highly recommended."
  841.                                 )
  842.                             )
  843.                         )
  844.                     )
  845.  
  846.                     (set lineazip (cat (cat "ZIP\t#?.ZIP\tPK#?\t"( tackon at_moddest "zip.xarc_io")"\t0\t0\t0\tQ\t\t" zipcommand ) (cat "\t" zipuncommand )"\t1\n") )
  847.                 )
  848.             )
  849.         )
  850.     )
  851. )
  852.  
  853. (procedure P_TAGGACATS
  854.     (set bitcataloghi
  855.         (askoptions
  856.             (help @askoptions-help)
  857.             (prompt "Select the catalog(s) you want to install.\nEnglish is built in the program.")
  858.             (default 0)
  859.             (choices
  860.                 catalan_cat
  861.                 croatian_cat
  862.                 czech_cat
  863.                 danish_cat
  864.                 dutch_cat
  865.                 english_cat
  866.                 finnish_cat
  867.                 french_cat
  868.                 german_cat
  869.                 greek_cat
  870.                 hungarian_cat
  871.                 italian_cat
  872.                 japanese_cat
  873.                 norwegian_cat
  874.                 persian_cat
  875.                 polish_cat
  876.                 portugueseeuro_cat
  877.                 portuguesebraz_cat
  878.                 russian_cat
  879.                 serbian_cat
  880.                 slovenian_cat
  881.                 spanish_cat
  882.                 swedish_cat
  883.             )
  884.         )
  885.     )
  886. )
  887.  
  888. (procedure P_TAGGADOC
  889.     (set documentation
  890.         (askchoice
  891.             (help @askchoice-help)
  892.             (prompt "In which language would you like to install the accompanying documentation?")
  893.             (default 0)
  894.             (choices
  895.                 "No documentation at all."
  896.                 catalan_doc
  897.                 croatian_doc
  898.                 czech_doc
  899.                 danish_doc
  900.                 dutch_doc
  901.                 english_doc
  902.                 finnish_doc
  903.                 french_doc
  904.                 german_doc
  905.                 greek_doc
  906.                 hungarian_doc
  907.                 italian_doc
  908.                 japanese_doc
  909.                 norwegian_doc
  910.                 persian_doc
  911.                 polish_doc
  912.                 portugueseeuro_doc
  913.                 portuguesebraz_doc
  914.                 russian_doc
  915.                 serbian_doc
  916.                 slovenian_doc
  917.                 spanish_doc
  918.                 swedish_doc
  919.             )
  920.         )
  921.     )
  922. )
  923.  
  924. (procedure P_INKEY
  925.     (
  926.     (set risultato (P_XATREG))
  927.     (if (= 0 risultato)
  928.         (if (= 0
  929.                 (askbool
  930.                     ( prompt "A keyfile is already installed, would you like to install a new one?")
  931.                     ( help @askbool-help)
  932.                 )
  933.             )
  934.             (;Then
  935.                 (exit)
  936.             )
  937.             (;Else
  938.                 (P_INSTXAT)
  939.                 (set risultato (P_XATREG))
  940.                 (if (= 0 risultato)
  941.                     ( (P_XAT_O_DEMO_O_RESETTI) )
  942.                     ( (P_INKEY) )
  943.                     )
  944.  
  945.             )
  946.             )
  947.         (;Else
  948.         (if (= 0 (P_CERCACHIAVE) )
  949.             (
  950.                 (copyfiles
  951.                     (prompt "Copying your keyfile in s:")
  952.                     (help @copyfiles-help)
  953.                     (source
  954.                         ( askfile
  955.                             (prompt "Please locate your keyfile.")
  956.                             (default "x-arc.key")
  957.                             (help @askfile-help)
  958.                         )
  959.                     )
  960.                     (dest "S:")
  961.  
  962.                 )
  963.                 (P_INKEY)
  964.             )
  965.             (
  966.                 (message
  967.                     "If you have a previous version of X-Arc running,"
  968.                     " please close it before pressing ''Proceed''.\n"
  969.                     "Be Careful: If you do not close it, X-Arc could freeze"
  970.                     " and you will have to reboot your machine!"
  971.                 )
  972.                 (if (= 1 (exists "libs:xarctools.library"))
  973.                     (run "libs:xarctools.library")
  974.                     (run
  975.                         ( askfile
  976.                             (prompt "Please locate your xarctools.library")
  977.                             (default "libs:xarctools.library")
  978.                             (help @askfile-help)
  979.                         )
  980.                     )
  981.                 )
  982.                 (message
  983.                     "The keyfile has been installed within the xarctools.library,"
  984.                     " as required. Please remember that within this library is your keyfile!"
  985.                     " Therefore DO NOT give or offer this library to anyone,"
  986.                     " as it is the same as if you spread your keyfile!\n\n"
  987.                     "One more time:\ndo not give anyone your xarctools library!"
  988.                 )
  989.                 (P_CONTROLLA_SE_INSTALLATA)
  990.             )
  991.         )
  992.         )
  993.     )
  994.     )
  995. )
  996.  
  997. (procedure P_XAT_O_DEMO_O_RESETTI
  998. (
  999.     (set risultato (P_XATREG))
  1000.     (if (= 0 risultato)
  1001.         (
  1002.         (if (= 0
  1003.             (askbool
  1004.                 (prompt
  1005.                     "It hasn't been possible to flush a previous xarctools.library."
  1006.                     " Please close all X-Arc tasks and retry."
  1007.                     " If this still doesn't work, quit from this installation,"
  1008.                     " reset the computer and re-run this script."
  1009.                 )
  1010.                 (help @askbool-help)
  1011.                 (choices "Ok, try Again" "Quit")
  1012.             )
  1013.             )
  1014.             (exit)
  1015.             (P_XAT_O_DEMO_O_RESETTI)
  1016.         )
  1017.         )
  1018.         ( P_INKEY )
  1019.     )
  1020. )
  1021. )
  1022.  
  1023. (procedure P_INSTXAT
  1024. (
  1025.     (message
  1026.                     "If you have a previous version of X-Arc running,"
  1027.                     " please close it before pressing ''Proceed''.\n"
  1028.                     "Be Careful: If you do not close it, X-Arc could freeze"
  1029.                     " and you will have to reboot your machine!"
  1030.     )
  1031.     (P_FLUSH)
  1032.     (copyfiles
  1033.         (source "Installation/Libs/xarctools.library")
  1034.         (prompt "Copying xarctools.library...")
  1035.         (confirm)
  1036.         (dest "Libs:" )
  1037.         (help @copyfiles-help)
  1038.     )
  1039. )
  1040. )
  1041.  
  1042. (procedure P_FLUSH
  1043.     (
  1044.     (run "avail flush >NIL:")
  1045.     (run "avail flush >NIL:")
  1046.     (run "avail flush >NIL:")
  1047.     )
  1048. )
  1049.  
  1050. (procedure P_INSTALNLIST
  1051.  (       (
  1052.         (complete 1)
  1053.         (copylib (prompt "Installing NList.mcc class in MUI." )
  1054.                  (help @copylib-help)
  1055.                  (source "Installation/nlist/NList.mcc")
  1056.                  (dest "MUI:Libs/MUI")
  1057.                  (confirm)
  1058.                  (optional "askuser" "force")
  1059.         )
  1060.         (complete 5)
  1061.         (copylib (prompt "Installing NListview.mcc class in MUI." )
  1062.                  (help @copylib-help)
  1063.                  (source "Installation/nlist/NListview.mcc")
  1064.                  (dest "MUI:Libs/MUI")
  1065.                  (confirm)
  1066.                  (optional "askuser" "force")
  1067.         )
  1068.         (complete 10)
  1069.  
  1070.         (copylib (prompt "Installing NFloattext.mcc class in MUI." )
  1071.                  (help @copylib-help)
  1072.                  (source "Installation/nlist/NFloattext.mcc")
  1073.                  (dest "MUI:Libs/MUI")
  1074.                  (confirm)
  1075.                  (optional "askuser" "force")
  1076.         )
  1077.         (complete 15)
  1078.  
  1079.         (copylib (prompt "Copying NListviews.mcp." )
  1080.                  (help @copylib-help)
  1081.                  (confirm)
  1082.                  (source "Installation/nlist/NListviews.mcp")
  1083.                  (dest "MUI:Libs/MUI")
  1084.                  (optional "askuser" "force")
  1085.         )
  1086.         (complete 20)
  1087.         ;MCCs installed
  1088.         )
  1089. )
  1090. ) ;fine P_INSTALNLIST
  1091.  
  1092. (procedure P_CERCACHIAVE
  1093.     (OR
  1094.         (OR
  1095.             (= 1 (exists "s:x-arc.key" (noreq)))
  1096.             (OR
  1097.                 (= 1 (exists "keypath:x-arc.key" (noreq)))
  1098.                 (= 1 (exists "keyfiles:x-arc.key" (noreq)))
  1099.             )
  1100.         )
  1101.         (OR
  1102.             (= 1 (exists "x-arc.key" (noreq)))
  1103.             (= 1 (exists (tackon (getenv "keypath") "x-arc.key") (noreq)))
  1104.         )
  1105.     )
  1106. )
  1107.  
  1108. (procedure P_INIT_LOC
  1109.  
  1110. (set catalan_name            "Catalan"                  )
  1111. (set croatian_name           "Croatian"                 )
  1112. (set czech_name              "Czech"                    )
  1113. (set danish_name             "Danish"                   )
  1114. (set dutch_name              "Dutch"                    )
  1115. (set english_name            "English"                  )
  1116. (set finnish_name            "Finnish"                  )
  1117. (set french_name             "French"                   )
  1118. (set german_name             "German"                   )
  1119. (set greek_name              "Greek"                    )
  1120. (set hungarian_name          "Hungarian"                )
  1121. (set italian_name            "Italian"                  )
  1122. (set japanese_name           "Japanese"                 )
  1123. (set norwegian_name          "Norwegian"                )
  1124. (set persian_name            "Persian"                  )
  1125. (set polish_name             "Polish"                   )
  1126. (set portugueseeuro_name     "Portuguese (european)"    )
  1127. (set portuguesebraz_name     "Portuguese (brazilian)"   )
  1128. (set russian_name            "Russian"                  )
  1129. (set serbian_name            "Serbian"                  )
  1130. (set slovenian_name          "Slovenian"                )
  1131. (set spanish_name            "Spanish"                  )
  1132. (set swedish_name            "Swedish"                  )
  1133.  
  1134. (set catalan_dir             "català"                   )
  1135. (set croatian_dir            "hrvatski"                 )
  1136. (set czech_dir               "czech"                    )
  1137. (set danish_dir              "dansk"                    )
  1138. (set dutch_dir               "nederlands"               )
  1139. (set english_dir             "english"                  )
  1140. (set finnish_dir             "suomi"                    )
  1141. (set french_dir              "français"                 )
  1142. (set german_dir              "deutsch"                  )
  1143. (set greek_dir               "greek"                    )
  1144. (set hungarian_dir           "magyar"                   )
  1145. (set italian_dir             "italiano"                 )
  1146. (set japanese_dir            "japanese"                 )
  1147. (set norwegian_dir           "norsk"                    )
  1148. (set persian_dir             "farsi"                    )
  1149. (set polish_dir              "polski"                   )
  1150. (set portugueseeuro_dir      "português"                )
  1151. (set portuguesebraz_dir      "português-brasil"         )
  1152. (set russian_dir             "russian"                  )
  1153. (set serbian_dir             "srpski"                   )
  1154. (set slovenian_dir           "slovensko"                )
  1155. (set spanish_dir             "español"                  )
  1156. (set swedish_dir             "svenska"                  )
  1157.  
  1158. )
  1159.  
  1160.  
  1161. (procedure P_SETTA_VAR_CAT
  1162.  
  1163. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" catalan_dir              )  "XArc.catalog") ) ) (set catalan_cat          catalan_name           ) (set catalan_cat         "" ) )
  1164. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" croatian_dir             )  "XArc.catalog") ) ) (set croatian_cat         croatian_name          ) (set croatian_cat        "" ) )
  1165. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" czech_dir                )  "XArc.catalog") ) ) (set czech_cat            czech_name             ) (set czech_cat           "" ) )
  1166. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" danish_dir               )  "XArc.catalog") ) ) (set danish_cat           danish_name            ) (set danish_cat          "" ) )
  1167. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" dutch_dir                )  "XArc.catalog") ) ) (set dutch_cat            dutch_name             ) (set dutch_cat           "" ) )
  1168. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" english_dir              )  "XArc.catalog") ) ) (set english_cat          english_name           ) (set english_cat         "" ) )
  1169. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" finnish_dir              )  "XArc.catalog") ) ) (set finnish_cat          finnish_name           ) (set finnish_cat         "" ) )
  1170. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" french_dir               )  "XArc.catalog") ) ) (set french_cat           french_name            ) (set french_cat          "" ) )
  1171. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" german_dir               )  "XArc.catalog") ) ) (set german_cat           german_name            ) (set german_cat          "" ) )
  1172. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" greek_dir                )  "XArc.catalog") ) ) (set greek_cat            greek_name             ) (set greek_cat           "" ) )
  1173. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" hungarian_dir            )  "XArc.catalog") ) ) (set hungarian_cat        hungarian_name         ) (set hungarian_cat       "" ) )
  1174. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" italian_dir              )  "XArc.catalog") ) ) (set italian_cat          italian_name           ) (set italian_cat         "" ) )
  1175. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" japanese_dir             )  "XArc.catalog") ) ) (set japanese_cat         japanese_name          ) (set japanese_cat        "" ) )
  1176. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" norwegian_dir            )  "XArc.catalog") ) ) (set norwegian_cat        norwegian_name         ) (set norwegian_cat       "" ) )
  1177. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" persian_dir              )  "XArc.catalog") ) ) (set persian_cat          persian_name           ) (set persian_cat         "" ) )
  1178. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" polish_dir               )  "XArc.catalog") ) ) (set polish_cat           polish_name            ) (set polish_cat          "" ) )
  1179. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" portugueseeuro_dir       )  "XArc.catalog") ) ) (set portugueseeuro_cat   portugueseeuro_name    ) (set portugueseeuro_cat  "" ) )
  1180. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" portuguesebraz_dir       )  "XArc.catalog") ) ) (set portuguesebraz_cat   portuguesebraz_name    ) (set portuguesebraz_cat  "" ) )
  1181. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" russian_dir              )  "XArc.catalog") ) ) (set russian_cat          russian_name           ) (set russian_cat         "" ) )
  1182. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" serbian_dir              )  "XArc.catalog") ) ) (set serbian_cat          serbian_name           ) (set serbian_cat         "" ) )
  1183. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" slovenian_dir            )  "XArc.catalog") ) ) (set slovenian_cat        slovenian_name         ) (set slovenian_cat       "" ) )
  1184. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" spanish_dir              )  "XArc.catalog") ) ) (set spanish_cat          spanish_name           ) (set spanish_cat         "" ) )
  1185. (if (= 1 (exists (tackon (tackon "Installation/catalogs/" swedish_dir              )  "XArc.catalog") ) ) (set swedish_cat          swedish_name           ) (set swedish_cat         "" ) )
  1186.  
  1187. )
  1188.  
  1189. (procedure P_SETTA_VAR_DOC
  1190.  
  1191. (if (= 1 (exists (tackon (tackon "Installation/documentation/" catalan_dir              )  "index.html") ) ) (set catalan_doc          catalan_name           ) (set catalan_doc         "" ) )
  1192. (if (= 1 (exists (tackon (tackon "Installation/documentation/" croatian_dir             )  "index.html") ) ) (set croatian_doc         croatian_name          ) (set croatian_doc        "" ) )
  1193. (if (= 1 (exists (tackon (tackon "Installation/documentation/" czech_dir                )  "index.html") ) ) (set czech_doc            czech_name             ) (set czech_doc           "" ) )
  1194. (if (= 1 (exists (tackon (tackon "Installation/documentation/" danish_dir               )  "index.html") ) ) (set danish_doc           danish_name            ) (set danish_doc          "" ) )
  1195. (if (= 1 (exists (tackon (tackon "Installation/documentation/" dutch_dir                )  "index.html") ) ) (set dutch_doc            dutch_name             ) (set dutch_doc           "" ) )
  1196. (if (= 1 (exists (tackon (tackon "Installation/documentation/" english_dir              )  "index.html") ) ) (set english_doc          english_name           ) (set english_doc         "" ) )
  1197. (if (= 1 (exists (tackon (tackon "Installation/documentation/" finnish_dir              )  "index.html") ) ) (set finnish_doc          finnish_name           ) (set finnish_doc         "" ) )
  1198. (if (= 1 (exists (tackon (tackon "Installation/documentation/" french_dir               )  "index.html") ) ) (set french_doc           french_name            ) (set french_doc          "" ) )
  1199. (if (= 1 (exists (tackon (tackon "Installation/documentation/" german_dir               )  "index.html") ) ) (set german_doc           german_name            ) (set german_doc          "" ) )
  1200. (if (= 1 (exists (tackon (tackon "Installation/documentation/" greek_dir                )  "index.html") ) ) (set greek_doc            greek_name             ) (set greek_doc           "" ) )
  1201. (if (= 1 (exists (tackon (tackon "Installation/documentation/" hungarian_dir            )  "index.html") ) ) (set hungarian_doc        hungarian_name         ) (set hungarian_doc       "" ) )
  1202. (if (= 1 (exists (tackon (tackon "Installation/documentation/" italian_dir              )  "index.html") ) ) (set italian_doc          italian_name           ) (set italian_doc         "" ) )
  1203. (if (= 1 (exists (tackon (tackon "Installation/documentation/" japanese_dir             )  "index.html") ) ) (set japanese_doc         japanese_name          ) (set japanese_doc        "" ) )
  1204. (if (= 1 (exists (tackon (tackon "Installation/documentation/" norwegian_dir            )  "index.html") ) ) (set norwegian_doc        norwegian_name         ) (set norwegian_doc       "" ) )
  1205. (if (= 1 (exists (tackon (tackon "Installation/documentation/" persian_dir              )  "index.html") ) ) (set persian_doc          persian_name           ) (set persian_doc         "" ) )
  1206. (if (= 1 (exists (tackon (tackon "Installation/documentation/" polish_dir               )  "index.html") ) ) (set polish_doc           polish_name            ) (set polish_doc          "" ) )
  1207. (if (= 1 (exists (tackon (tackon "Installation/documentation/" portugueseeuro_dir       )  "index.html") ) ) (set portugueseeuro_doc   portugueseeuro_name    ) (set portugueseeuro_doc  "" ) )
  1208. (if (= 1 (exists (tackon (tackon "Installation/documentation/" portuguesebraz_dir       )  "index.html") ) ) (set portuguesebraz_doc   portuguesebraz_name    ) (set portuguesebraz_doc  "" ) )
  1209. (if (= 1 (exists (tackon (tackon "Installation/documentation/" russian_dir              )  "index.html") ) ) (set russian_doc          russian_name           ) (set russian_doc         "" ) )
  1210. (if (= 1 (exists (tackon (tackon "Installation/documentation/" serbian_dir              )  "index.html") ) ) (set serbian_doc          serbian_name           ) (set serbian_doc         "" ) )
  1211. (if (= 1 (exists (tackon (tackon "Installation/documentation/" slovenian_dir            )  "index.html") ) ) (set slovenian_doc        slovenian_name         ) (set slovenian_doc       "" ) )
  1212. (if (= 1 (exists (tackon (tackon "Installation/documentation/" spanish_dir              )  "index.html") ) ) (set spanish_doc          spanish_name           ) (set spanish_doc         "" ) )
  1213. (if (= 1 (exists (tackon (tackon "Installation/documentation/" swedish_dir              )  "index.html") ) ) (set swedish_doc          swedish_name           ) (set swedish_doc         "" ) )
  1214.  
  1215. )
  1216.  
  1217.  
  1218.  
  1219.  
  1220. (
  1221.     (message
  1222.        "\n\n\nX-Arc 1.3\n"
  1223.        "The archive management tool for the Amiga.\n"
  1224.        "\n(c) by Federico Pomi and Nik Soggia 1997, 1998, 1999\n"
  1225.        "\nhttp://www.vapor.com/X-Arc/"
  1226.        "\nhttp://www.AmyResource.it/X-Arc/"
  1227.     )
  1228.  
  1229.     (P_INIT_LOC)
  1230.     (P_INIZIO)
  1231.  
  1232.     (exit)
  1233. )
  1234.  
  1235.